package fr.upmf.ic2a.sharedata.provider;

import android.net.Uri;
import android.provider.BaseColumns;

public final class ShareDataContract {

	public static final String AUTHORITY = "fr.upmf.ic2a.sharedata.ContentProvider";

	public static final class Sent implements BaseColumns {

		protected static final String TABLE_NAME = "sent";
		public static final String ID_FILE = "id_file";
		public static final String TITLE = "title";
		public static final String SYNC_STATUS = "sync_status";
		public static final String RESOURCE = "resource";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.upmf.share.sent";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.upmf.share.sent";
	}

	public static final class Received implements BaseColumns {

		protected static final String TABLE_NAME = "received";
		public static final String ID_FILE = "id_file";
		public static final String TITLE = "title";
		public static final String SYNC_STATUS = "sync_status";
		public static final String FROM_ID = "date";
		public static final String DATE = "date";
		public static final String RESOURCE = "resource";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.upmf.share.received";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.upmf.share.received";
	}

	public static final class Contact implements BaseColumns {

		protected static final String TABLE_NAME = "contacts";
		public static final String ID_SENT = "id_sent";
		public static final String ID_CONTACT = "id_contact";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.upmf.share.contacts";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.upmf.share.contacts";
	}
		
	public static final class File implements BaseColumns {

		protected static final String TABLE_NAME = "file";
		public static final String MIME_TYPE = "mime_type";
		public static final String URL_SYSTEM = "url_system";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.upmf.share.file";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.upmf.share.file";
	}

}
